<template>
  <a-card :bordered='false' class='card-area'>
    <!-- 查询区域 11111-->
    <div class='table-page-search-wrapper'>
      <a-form layout='inline' :label-col='labelCol' @keyup.enter.native='searchQuery'>
        <a-row :gutter='24'>
          <a-col :md="5" :sm="8">
            <a-form-item label="计划编号">
              <a-input placeholder="请输入计划编号" v-model="queryParam.planCode"></a-input>
            </a-form-item>
          </a-col>
          <a-col :md="5" :sm="8">
            <a-form-item label="计划标题">
              <a-input placeholder="请输入计划标题" v-model="queryParam.planTitle"></a-input>
            </a-form-item>
          </a-col>
          <a-col :md="5" :sm="8">
            <a-form-item label="客户姓名">
              <a-input placeholder="请输入客户姓名" v-model="queryParam.patientName"></a-input>
            </a-form-item>
          </a-col>
          <span style='float: left;overflow: hidden;' class='table-page-search-submitButtons'>
           <a-col :md='6' :sm='24'>
               <a-button type='primary' @click='searchQuery' icon='search'>查询</a-button>
               <a-button type='primary' @click='searchReset' icon='reload' style='margin-left: 8px'>重置</a-button>
           </a-col>
        </span>
        </a-row>
      </a-form>
    </div>

    <!-- 操作按钮区域 -->
    <div class='table-operator'>

    </div>

    <!-- table区域-begin -->
    <div>


      <a-table
        ref='table'
        size='middle'
        bordered
        rowKey='id'
        :columns='columns'
        :dataSource='dataSource'
        :pagination='ipagination'
        :loading='loading'
        @change='handleTableChange'>

      </a-table>
    </div>
    <!-- table区域-end -->

    <!-- 表单区域 -->
    <hHisInterviewPlan-modal ref='modalForm' @ok='modalFormOk'></hHisInterviewPlan-modal>
  </a-card>
</template>
<script>
import '@/assets/less/TableExpand.less'
import HHisInterviewPlanModal from './modules/HHisInterviewPlanModal'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import { putAction, getAction, postAction } from '@/api/manage'
import { frozenBatch } from '@/api/api'

export default {
  name: 'h_his_interview_planList',
  mixins: [JeecgListMixin],
  components: {
    HHisInterviewPlanModal
  },
  data() {
    return {
      description: '走访计划管理页面',
      labelCol: { style: { width: '110px' } },
      queryParam: {
        planType: '2',
      },
      // 表头
      columns: [
        {
          title: '走访工单',
          align: 'center',
          dataIndex: 'planCode',
          width: 200,
        },
        {
          title: '计划标题',
          align: 'center',
          dataIndex: 'planTitle'
        },
        {
          title: '客户姓名',
          align: 'center',
          dataIndex: 'patientName',
          width: 150,
        },
        {
          title: '电话',
          align: 'center',
          dataIndex: 'patientPhone',
          width: 150,
        },
        {
          title: '执行人',
          align: 'center',
          dataIndex: 'eyName',
          width: 130,
        },
        {
          title: '执行次数',
          align: 'center',
          dataIndex: 'execCount',
          width: 130,
        },
        {
          title: '完成次数',
          align: 'center',
          dataIndex: 'finishCount',
          width: 130,
        },
        {
          title: '开始时间',
          align: 'center',
          dataIndex: 'startTime',
          width: 150,
        },
        {
          title: '结束时间',
          align: 'center',
          dataIndex: 'endTime',
          width: 150,
        },
        {
          title: '服务时长(分钟)',
          align: 'center',
          dataIndex: 'duration',
          width: 130,
        }
      ],
      url: {
        list: '/ch/interview/detail/list/finish'
      }
    }
  },
  computed: {
    importExcelUrl: function() {
      return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`
    }
  },
  methods: {}
}
</script>
<style scoped>
@import '~@assets/less/common.less';
</style>